package com.gds.wiki.cloud.framework.web.constant;

public class HttpSecurityConstant {

    private static final String[] swagger_ui = {
            // -- swagger ui
            "/webjars/**", "/resources/**",
            "/swagger-ui.html",
            "/swagger-resources/**",
            "/v2/api-docs","/images/**",
            "/swagger",
            "/configuration/ui",
            "/configuration/security"
    };

    public static String[] swagger_ui_matchers() {
       return swagger_ui;
    }


    private static final String[] user_white_list = {
            "/oauth/token",
            "/kaptcha", //短信验证图片
            "/user/register",//用户注册
            "/massage/push",  //发送短信
            "/error" , //错误页面
            "/favicon.ico"
    };

    public static String[] user_white_list() {
        return user_white_list;
    }

    private static final String[] member_white_list = {
            "/oauth/token",
            "/kaptcha", //短信验证图片
            "/register",//用户注册
            "/massage/push",  //发送短信
            "/error" , //错误页面
            "/favicon.ico"
    };

    public static String[] member_white_list() {
        return member_white_list;
    }
}
